package com.hivekion.system.service;

import com.hivekion.common.entity.TreeNode;
import com.hivekion.system.domain.vo.SysDictTypeCreateVo;
import com.hivekion.system.domain.vo.SysDictTypeModelVo;
import com.hivekion.system.domain.vo.SysDictTypeUpdateVo;
import com.hivekion.system.domain.vo.SysDictTypeViewVo;

import java.util.List;

public interface ISysDictTypeService {
      Boolean checkTypeNameUnique(String typeName, String key);

      Boolean checkTypeCodeUnique(String typeCode, String key);

      boolean add(SysDictTypeCreateVo createVo);

      boolean edit(SysDictTypeUpdateVo updateVo);

      boolean remove(String key);

      SysDictTypeModelVo get(String key);

      SysDictTypeModelVo getByCode(String code);

      List<SysDictTypeViewVo> getAll();

      List<TreeNode> getTreeNodes();
}
